Optimal. Leaf size=98 \[ \frac {\sqrt {2} \text {ArcSin}\left (\frac {\sin (c+d x)}{1+\cos (c+d x)}\right )}{d}+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {2858, 3063, 12,
2860, 222} \begin {gather*} \frac {\sqrt {2} \text {ArcSin}\left (\frac {\sin (c+d x)}{\cos (c+d x)+1}\right )}{d}+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {\cos (c+d x)+1}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {\cos (c+d x)+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 222
Rule 2858
Rule 2860
Rule 3063
Rubi steps
\begin {align*} \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {1+\cos (c+d x)}} \, dx &=\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {1}{3} \int \frac {1-2 \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}}-\frac {2}{3} \int -\frac {3}{2 \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}}+\int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}}-\frac {\sqrt {2} \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (c+d x)}{1+\cos (c+d x)}\right )}{d}\\ &=\frac {\sqrt {2} \sin ^{-1}\left (\frac {\sin (c+d x)}{1+\cos (c+d x)}\right )}{d}+\frac {2 \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {1+\cos (c+d x)}}-\frac {2 \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 6.64, size = 471, normalized size = 4.81 \begin {gather*} -\frac {2 \cot \left (\frac {c}{2}+\frac {d x}{2}\right ) \csc ^4\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (12 \cos ^4\left (\frac {1}{2} (c+d x)\right ) \, _3F_2\left (2,2,\frac {7}{2};1,\frac {9}{2};\frac {\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{-1+2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}\right ) \sin ^8\left (\frac {c}{2}+\frac {d x}{2}\right )+12 \, _2F_1\left (2,\frac {7}{2};\frac {9}{2};\frac {\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{-1+2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}\right ) \sin ^8\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (4-7 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )+3 \sin ^4\left (\frac {c}{2}+\frac {d x}{2}\right )\right )+7 \left (1-2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )\right )^3 \sqrt {\frac {\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{-1+2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}} \left (15-20 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )+8 \sin ^4\left (\frac {c}{2}+\frac {d x}{2}\right )\right ) \left (\tanh ^{-1}\left (\sqrt {\frac {\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{-1+2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}}\right ) \left (3-6 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )\right )+\sqrt {\frac {\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{-1+2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}} \left (-3+7 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )\right )\right )\right )}{63 d \sqrt {1+\cos (c+d x)} \left (1-2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )\right )^{7/2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(277\) vs.
\(2(84)=168\).
time = 0.17, size = 278, normalized size = 2.84
method | result | size |
default | \(-\frac {\left (3 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {2}\, \left (\cos ^{3}\left (d x +c \right )\right )+9 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right )+9 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {2}\, \cos \left (d x +c \right )+3 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {2}+2 \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-2 \sin \left (d x +c \right ) \cos \left (d x +c \right )\right ) \sqrt {2+2 \cos \left (d x +c \right )}\, \left (\sin ^{4}\left (d x +c \right )\right ) \sqrt {2}}{6 d \left (-1+\cos \left (d x +c \right )\right )^{2} \left (1+\cos \left (d x +c \right )\right )^{3} \cos \left (d x +c \right )^{\frac {5}{2}}}\) | \(278\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 134, normalized size = 1.37 \begin {gather*} -\frac {2 \, \sqrt {\cos \left (d x + c\right ) + 1} {\left (\cos \left (d x + c\right ) - 1\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 3 \, {\left (\sqrt {2} \cos \left (d x + c\right )^{3} + \sqrt {2} \cos \left (d x + c\right )^{2}\right )} \arctan \left (\frac {\sqrt {2} \sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, {\left (\cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )}}\right )}{3 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {\cos {\left (c + d x \right )} + 1} \cos ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {\cos \left (c+d\,x\right )+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________